package a11_adapter;

public class Client {
	public static void main(String[] args) {
		V220Battery v220Battery = new BYD220VBattery();
		Battery220To5Adapter adapter = new Battery220To5Adapter(v220Battery);
		adapter.provide5VEnergy();
		// 类适配器
		Battery220To5AdapterClassLevel adapter2 = new Battery220To5AdapterClassLevel();
		adapter2.provide5VEnergy();
	}
}
